/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 根据ID查询投诉与反馈沟通记录表 GET /scenic/complaintFeedbackExchange/getComplaintFeedbackExchangeById */
export async function scenicComplaintFeedbackExchangeGetComplaintFeedbackExchangeByIdUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicComplaintFeedbackExchangeGetComplaintFeedbackExchangeByIdUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingComplaintFeedbackExchangeVo>(
    '/scenic/complaintFeedbackExchange/getComplaintFeedbackExchangeById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询投诉与反馈沟通记录列表 POST /scenic/complaintFeedbackExchange/listComplaintFeedbackExchange */
export async function scenicComplaintFeedbackExchangeListComplaintFeedbackExchangeUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackExchangeBoedc120499d46446bBfc76fdde5bf1620;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoComplaintFeedbackExchangeVo>(
    '/scenic/complaintFeedbackExchange/listComplaintFeedbackExchange',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 新增保存投诉与反馈沟通记录表 POST /scenic/complaintFeedbackExchange/saveComplaintFeedbackExchange */
export async function scenicComplaintFeedbackExchangeSaveComplaintFeedbackExchangeUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackExchangeBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/complaintFeedbackExchange/saveComplaintFeedbackExchange',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
